fix(debug-loop): add Plan Mode rejection/revision loop#191
Conversation
Add explicit handling for user rejection and cancellation during the Plan Mode setup phase. Users can now revise parameters, re-attempt reproduction, and update the GitHub Issue before confirming. Cancel path cleans up the pre-created GitHub Issue. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
Adds an explicit Plan Mode “reject/revise/confirm” loop to the /maxsim:debug-loop command so users can request changes (and re-run reproduction if needed) before the autonomous investigation begins, with a cancel path that closes the pre-created tracking issue.
Changes:
- Insert a user confirmation loop after presenting the investigation plan (approve / request changes / cancel).
- On “request changes”, revise parameters, optionally re-run reproduction, update the tracking issue, and re-confirm.
- On “cancel”, close the tracking issue and exit Plan Mode.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| - **If user requests changes:** revise the relevant parameters (scope, reproduction command, investigation approach). If the reproduction command changed, re-attempt reproduction (step 3). Update the GitHub Issue body with the revised plan. Return to step 5 (stay in Plan Mode). | ||
| - **If user cancels:** close the GitHub Issue created in step 4 (`gh issue close {ISSUE_NUM} --comment "Debug session cancelled by user before investigation began"`), Exit Plan Mode via ExitPlanMode, and stop. |
There was a problem hiding this comment.
Step 6’s cancel path references {ISSUE_NUM}, but this template otherwise uses $... variables (e.g., $ARGUMENTS) and doesn’t define/capture an issue number in step 4. This makes the cancellation instruction ambiguous/unenforceable. Consider explicitly capturing the created issue number/URL in step 4 and then referencing it consistently here (e.g., $ISSUE_NUM, consistent with templates/workflows/debug.md).
|
🎉 This PR is included in version 5.15.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Summary
/maxsim:debug-loopPlan Mode setup (§8 audit gap)gh issue closeTest plan
🤖 Generated with Claude Code